﻿using System;
using System.Net.Sockets;
using Minecraft.Model;
using Minecraft.Model.ReqResp;
using TestClient.Client.Com;
using TestClient.Client.Send;

namespace TestClient.Client.Receive
{
	public class Player_PlayerLogin
	{
		public void Execute(Socket socketClient, EnumCommand command, string respStr)
		{
			var resp = respStr.JsonDeserialize<PlayerLoginResp>();
			RespLevelJudge.Do(command, resp, () =>
			{
				//登录成功
				ComManager.Send(socketClient, () =>
				{
					return SendBackpackGoodsSelect.GetReq();
				});
			});
		}
	}
}
